<template>
  <div>
    <!-- 二级路由出口 -->
    <router-view></router-view>

    <!-- <footer>
      <router-link to="/home/index">首页</router-link>
      <router-link to="/home/car">购物车</router-link>
      <router-link to="/home/my">我的</router-link>
    </footer> -->
    <van-tabbar route placeholder>
      <van-tabbar-item icon="home-o" to="/home/index">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/home/classify">分类</van-tabbar-item>
      <van-tabbar-item icon="search" to="/home/car">购物车</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/home/my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>


<style scoped lang="scss">
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 36px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
</style>